Set
Function
This API is used for Settings Alarm > DisarmingLinkage Parameters.
Request Message
Parameter Description
Table 1
Parameter | Range | Type | Description |
---|---|---|---|
enable | bool | LinkageManage switch. | |
linkage_info | object | For details, see Table 2。 | |
channel_info | object | For details on single channel, see Table 3。 |
Table 2
Parameter | Range | Type | Description |
---|---|---|---|
linkage_siren | bool | Whether to withdraw linkage alarm to withdraw switch. | |
linkage_floodlight | bool | Whether to remove the white light switch. | |
linkage_enforcerlight | bool | Whether to remove the red and blue light switch. | |
linkage_alarmout | bool | Whether to remove alarm output switch. | |
linkage_ptz | bool | Whether to remove PTZ linkage switch. | |
linkage_voiceprompt | bool | Whether to withdraw voice broadcast switch. | |
linkage_mobile_push | bool | Whether to remove the phone push switch. |
Table 3
Parameter | Range | Type | Description |
---|---|---|---|
CH1 | object | ||
… | object | ||
IP_CH1 | object | ||
… | object | ||
WIFI_CH1 | object | ||
… | object |
Sample:
POST /API/LinkageConfig/LinkageManage/Set HTTP/1.1
{
"version": "1.0",
"channel_info": {
"CH1": {
"enable": true,
"linkage_info": {
"linkage_siren": true,
"linkage_floodlight": true,
"linkage_enforcerlight": true,
"linkage_alarmout": true,
"linkage_ptz": false,
"linkage_voiceprompt": false,
"linkage_mobile_push": false
}
}
},
}
Response Message
Sample:
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": "success",
"data": {}
}
Error Code
See Response Messages Body and Common error_code for more information.